package com.zjj.lbw.microservice.nacos.consumer.nacosconsumer.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author zhanglei.zjj
 * @description RestTemplate配置类
 * @date 2023/7/3 22:51
 */
@Configuration
public class RestConfig {
    @Bean
     @LoadBalanced
//    @MyLoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
